JDirectTalker is a simple example of how to use Apple's JDirect technology to access APIs imported from code fragments, the Macintosh implemention of shared libraries. For more information about JDirect, see the document JDirect Note.pdf in the JDirect folder. This example uses Apple’s Speech Manager to provide text-to-speech capabilities inside a Java application.
The JDirectTalker class provides a simple java wrapper around the Mac OS Speech Manager. To invoke the Speech Manager, JDirectTalker uses native methods which JDirect binds directly to the SpeechLib shared library.
The MRJTalkTest class is a simple java application which uses JDirectTalker to display and speak a short message.
Apple, the Apple logo, LaserWriter, MacTCP, Power Macintosh, Mac, and Macintosh are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. PowerPC is a trademark of International Business Machines Corporation, used under license therefrom. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All other product names are trademarks or registered trademarks of their respective holders. Mention of non-Apple products is for information purposes and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance, or use of these products.